//
//  BottomBarView.h
//  OfflineSDKDemo
//
//  Created by Lyy on 15/8/18.
//  Copyright (c) 2015年 Gensee, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BottomBarView;
@protocol BottomBarViewDelegate <NSObject>

@optional
/**
 *  播放/暂停
 *
 *  @param isPlaying YES:播放，NO:暂停
 */
- (void)bottomBarView:(BottomBarView *)view isPlaying:(BOOL)isPlaying;
/**
 *  是否全屏
 *
 *  @param isFullScreen YES:全屏
 */
- (void)bottomBarViewFullScreen;

- (void)bottomBarView:(BottomBarView *)view slidePosition:(CGFloat)currentPosition;

@end

typedef void(^Position)(CGFloat currentPosition);

@interface BottomBarView : UIView

@property (nonatomic ,weak)id<BottomBarViewDelegate>delegate;
/**
 *  视频时长
 */
@property (nonatomic)int totalTime;
/**
 *  已播放时间
 */
@property (nonatomic)int hadPlayTime;

@property (nonatomic ,copy)Position position;

@end
